package jsyf.oa.entity.capital;

import com.alibaba.fastjson.JSONObject;

import javax.persistence.Entity;
import javax.persistence.Table;

import jsyf.oa.ientity.BaseEntity;

import java.io.Serializable;
import java.math.BigDecimal;

import java.util.Date;
/**
 * Created by houtailei on 2018/2/25.
 */
@Entity
@Table(name = "T_CPT_FLOW", schema = "oa", catalog = "")
public class FlowEntity extends BaseEntity implements Serializable{
    private String tkBankCardId;
    private String flowDirection;
    private String project;
    private BigDecimal money;
    private String moneySource;
    private String remark;
    private String createUserId;

    private String tkOutBankCardId;
    private String tkBankCardName;
    private String tkOutBankCardName;

    //时间
    private  String newTime;


    public String getNewTime() {
        return newTime;
    }

    public void setNewTime(String newTime) {
        this.newTime = newTime;
    }

    public String getTkBankCardId() {
        return tkBankCardId;
    }

    public void setTkBankCardId(String tkBankCardId) {
        this.tkBankCardId = tkBankCardId;
    }

    public String getFlowDirection() {
        return flowDirection;
    }

    public void setFlowDirection(String flowDirection) {
        this.flowDirection = flowDirection;
    }

    public String getProject() {
        return project;
    }

    public void setProject(String project) {
        this.project = project;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public String getMoneySource() {
        return moneySource;
    }

    public void setMoneySource(String moneySource) {
        this.moneySource = moneySource;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getTkOutBankCardId() {
        return tkOutBankCardId;
    }

    public void setTkOutBankCardId(String tkOutBankCardId) {
        this.tkOutBankCardId = tkOutBankCardId;
    }

    public String getTkBankCardName() {
        return tkBankCardName;
    }

    public void setTkBankCardName(String tkBankCardName) {
        this.tkBankCardName = tkBankCardName;
    }

    public String getTkOutBankCardName() {
        return tkOutBankCardName;
    }

    public void setTkOutBankCardName(String tkOutBankCardName) {
        this.tkOutBankCardName = tkOutBankCardName;
    }


    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("TK_BANK_CARD_ID", getTkBankCardId());
        obj.put("FLOW_DIRECTION", getFlowDirection());
        obj.put("PROJECT", getProject());
        obj.put("MONEY", getMoney());
        obj.put("MONEY_SOURCE", getMoneySource());
        obj.put("REMARK", getRemark());
        obj.put("CREATE_USER_ID", getCreateUserId());
        obj.put("CREATE_TIME", getCreateTime());
        obj.put("DEL_FLAG", getDelFlag());
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_CPT_FLOW";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID","id");
        obj.put("TK_BANK_CARD_ID", "tkBankCardId");
        obj.put("FLOW_DIRECTION", "flowDirection");
        obj.put("PROJECT", "project");
        obj.put("MONEY", "money");
        obj.put("MONEY_SOURCE", "moneySource");
        obj.put("REMARK", "remark");
        obj.put("CREATE_USER_ID", "createUserId");
        obj.put("CREATE_TIME","createTime");
        obj.put("DEL_FLAG", "delFlag");
        return obj;
    }

}
